package com.yilin.tms.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.entity.system.system.FunctionApi;
import com.yilin.tms.core.entity.user.grant.GrantFunctionApi;

import java.util.List;

public interface IGrantFunctionApiService extends IService<GrantFunctionApi> {

    List<FunctionApi> getAllFunctionApiList();

    List<FunctionApi> getMineGrantFunctionApiList(String organizeId);

    List<String> getMineGrantFunctionApiCodeList(String organizeId);

    List<FunctionApi> getGrantFunctionApiList(String memberTypeId);

    List<String> getGrantFunctionApiCodeList(String memberTypeId);

    void updateGrantFunctionApiList(String memberTypeId, String[] functionApiIds);

    void removeGrantFunctionApi(String memberTypeId, String functionApiId);
}
